package cn.xm.lingshi.pojo;

import java.util.Date;
import java.util.List;

/**
 * 订单类
 * 
 * @author 魏魁
 * 
 */
public class DingDan {
	private int orderid;// 订单编号
	private int userid;// 买家编号
	private Date gdate;// 购货日期
	private String address;// 收货地址
	private Date sdate;// 收货日期
	private int ordertype;// 订单状态
	private double amount;// 总金额
	private int detailid;// 订单详情编号
	private int shopid;// 零食编号
	private int shopnum;// 商品数量
	private List<Shop> list;
	
	public List<Shop> getList() {
		return list;
	}

	public void setList(List<Shop> list) {
		this.list = list;
	}

	public int getOrderid() {
		return orderid;
	}

	public void setOrderid(int orderid) {
		this.orderid = orderid;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public Date getGdate() {
		return gdate;
	}

	public void setGdate(Date gdate) {
		this.gdate = gdate;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getSdate() {
		return sdate;
	}

	public void setSdate(Date sdate) {
		this.sdate = sdate;
	}

	public int getOrdertype() {
		return ordertype;
	}

	public void setOrdertype(int ordertype) {
		this.ordertype = ordertype;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public int getDetailid() {
		return detailid;
	}

	public void setDetailid(int detailid) {
		this.detailid = detailid;
	}

	public int getShopid() {
		return shopid;
	}

	public void setShopid(int shopid) {
		this.shopid = shopid;
	}

	public int getShopnum() {
		return shopnum;
	}

	public void setShopnum(int shopnum) {
		this.shopnum = shopnum;
	}

	public DingDan() {
	}

	public DingDan(int orderid, int userid, Date gdate, String address,
			Date sdate, int ordertype, double amount, int detailid, int shopid,
			int shopnum, List<Shop> list) {
		this.orderid = orderid;
		this.userid = userid;
		this.gdate = gdate;
		this.address = address;
		this.sdate = sdate;
		this.ordertype = ordertype;
		this.amount = amount;
		this.detailid = detailid;
		this.shopid = shopid;
		this.shopnum = shopnum;
		this.list = list;
	}

	

}
